<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../common/tag.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>阅学网_${question.questionTitle}</title>
<meta name="Keywords"
	content="回答详情、问题详情">
<meta name="description"
	content="问题的回答详情">
<%@ include file="../common/common.jsp"%>
<script type="text/javascript" src="js/public/question/question.js?v=112.0"></script>
</head>
<body>
	<jsp:include page="../top.jsp"></jsp:include>
	<div class="step-detail" >
		<span><a href="public/index">${questionType.questionTypeName }</a></span>
	</div>
	<input type="hidden" value="${user.chName }" id="currentChName"> 
	<input type="hidden" value="${question.id}" id="questionId" />
	<div class="yc_content_inner">
		<div  style="width: 710px;float: left;">
				<div class="queation-div-left">
							<div style="float: left;width: 100%; "><h1 style="font-size: 18px;font-weight: bold;">${question.questionTitle}</h1></div>
							<div style="float: left;height: 30px;width: 100%;margin-top: 15px;font-size: 14px;color: #017E66;">关键词:${question.questionKeyword}</div>
							<div style="float: left;height: 40px;background: #F9FBFB;border:1px solid #F0F5F3;width: 700px;">
								<span style="float: left;margin-top: 7px;">回答被采纳后即可获得 ${question.questionIntegral} 分。</span>
							</div>
							<div style="width: 700px;height: 380px;">${question.questionDetail}</div>
							<div style="float: left;"><font color="#999999">${totalAnswers}条回答</font> 
							分类:<a style="color: #999;" href="public/question/questionTypeList/${questionType.id}">${questionType.questionTypeName }</a></div>
				</div>
				 
				<div class="question-detail-comment"  style="margin-top: 100px;margin-bottom: 20px;width: 710px;">
					<div class="comment-plug">
							<div class="comment-content" contenteditable="true"  placeholder="说点什么吧..." ></div>
							<div class="biaoqing-fabu">
							<div class="biaoqing">
								<a href="javascript:void(0);">插入表情</a>
							</div>
							<div>
								<c:if test="${empty user}">
									<a href="javascript:void(0);" onclick="javascript:$.util.login()"  class="fabu" >回&nbsp;&nbsp;答</a>
								</c:if>
								<c:if test="${ !empty user}">
									<a href="javascript:void(0);" class="fabu" onclick="quesAnswer();">回&nbsp;&nbsp;答</a>
								</c:if>
							</div>
						</div>
					</div>
				</div>
				<div class="pinglun-list" style="width: 710px;">
					<ul>
						<c:forEach items="${questionAnswers }" var="questionAnswer" varStatus="qw">
							 <li style="width: 100%;">
							 		<div style="float: left;width: 80px;height: 70px;">
							 			<img style="border-radius:50%;width: 65px;height: 65px;" src="public/user/showPicture/${questionAnswer.answerUserId }" />
							 		</div>
							 		<div style="width: 640px;float: left;">
									 	<div class="pinglun-date" style="width: 640px;">
									 			${questionAnswer.chName}:&nbsp;&nbsp;<fmt:formatDate value="${questionAnswer.createDate}" pattern="yyyy-MM-dd HH:mm:ss" />
									 	</div>
									 	<div class="pinglun-comment" style="word-wrap:break-word;width: 100%;">${questionAnswer.questionAnswer }</div>
							 		</div>
							 	</li>
 							</c:forEach>
						</ul>
				</div>
		</div>
			<div  style="width: 320px;height:120px;float: left;margin-left: 10px;margin-top: 10px;">
					<div style="width: 100%;height: 30px;">
						<span class = "question-gz" >
							<c:if test="${empty user}">
								<a href="javascript:void(0);" onclick="javascript:$.util.login()" style="color: #fff;">关注</a>
							</c:if>
							<c:if test="${ !empty user}">
								<a href="javascript:void(0);" style="color: #fff;"  onclick="operation(1)">关注</a>
							</c:if>
						</span>
						 <span style="float: left;margin-left: 15px;font-weight: bold;line-height: 30px;font-size: 15px;" id="gz">${question.questionAbout}</span>
					 	<span style="float: left;color: #999999;line-height: 30px;margin-left: 4px;">关注</span>
					 </div>
					<div style="width: 100%;height: 30px;margin-top: 12px;">
						<span class = "question-sc">
							<c:if test="${empty user}">
								<a href="javascript:void(0);" onclick="javascript:$.util.login()" style="color: #000;">收藏</a>
							</c:if>
							<c:if test="${ !empty user}">
								<a href="javascript:void(0);" style="color: #000;"  onclick="operation(2)">收藏</a>
							</c:if>
						</span>
						<span style="float: left;margin-left: 15px;font-weight: bold;line-height: 30px;font-size: 15px;" id="sc">${question.questionCollection}</span>
						<span style="float: left;color: #999999;line-height: 30px;margin-left: 4px;">收藏</span>
						<span style="float: left;margin-left: 15px;font-weight: bold;line-height: 30px;font-size: 15px;">${question.questionClick}</span>
						<span style="float: left;color: #999999;line-height: 30px;margin-left: 4px;">浏览</span>
						<div style="width: 100%;float: left;margin-top: 12px;"><a href="#" class="question-user">${question.user.chName}</a><span>提出于</span><fmt:formatDate value="${question.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></div>
					</div>
			</div>
			<div style="width: 320px;background:#5CB85C;color:#fff;font-size:14px;height:35px;line-height:35px;text-align:center;float: left;border:1px solid #DDDDDD;margin-left: 10px;margin-bottom: 10px;">
				<c:if test="${empty user}">
					<a href="javascript:void(0);" onclick="javascript:$.util.login()" style="color: #fff;">我要提问</a>
				</c:if>
				<c:if test="${ !empty user}">
					<a href="user/question/questionManage" style="color: #fff;">查看我的提问</a>
				</c:if>
				
			</div>
			<div style="width: 320px;height:340px;float: left;border:1px solid #DDDDDD;margin-left: 10px;">
						<div style="width: 100%;height: 35px;line-height: 35px;text-align: center;border-bottom: 1px solid #DDDDDD;">
							<span style="font-weight: bold;font-size: 14px;">相似问题</span>
						</div>
						<div>
						
						</div>
				</div>
	</div>
	<jsp:include page="../bottom.jsp"></jsp:include>
</body>
</html>
